Skip to content

docs: flow tql cte#2370

Open
discord9 wants to merge 2 commits intomainfrom
flow_tql_cte
Open

docs: flow tql cte#2370
discord9 wants to merge 2 commits intomainfrom
flow_tql_cte

Conversation

@discord9
Copy link
Contributor

@discord9 discord9 commented Mar 12, 2026

What's Changed in this PR

This PR documents the new CREATE FLOW capability introduced in GreptimeDB PR greptimedb#7702: using a simple TQL CTE in flow definitions, for example WITH ... AS (TQL EVAL ...) SELECT * FROM ....

The English docs in this PR now cover:

  • the new CREATE FLOW syntax shape for TQL CTEs;
  • a practical flow example showing how to wrap TQL EVAL in a CTE;
  • the intended restrictions of this feature, including that only the simplest single-TQL-CTE form is supported in flows.

Updated pages:

  • docs/reference/sql/create.md
  • docs/user-guide/flow-computation/continuous-aggregation.md
  • docs/user-guide/query-data/cte.md

Notes:

  • This PR currently updates the English docs only.
  • Localized docs will be updated in a follow-up change after the English wording is finalized.

Checklist

  • Please confirm that all corresponding versions of the documents have been revised.
  • Please ensure that the content in sidebars.ts matches the current document structure when you changed the document structure.
  • This change requires follow-up update in localized docs.

Signed-off-by: discord9 <discord9@163.com>
@fengjiachun
Copy link
Contributor

@discord9 En part LGTM, Please add Ch part and also sync the document into v1.0.

Signed-off-by: discord9 <discord9@163.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 16, 2026

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0f24b94
Status: ✅  Deploy successful!
Preview URL: https://3202d054.greptime-docs.pages.dev
Branch Preview URL: https://flow-tql-cte.greptime-docs.pages.dev

View logs

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants